import React, { Component } from 'react';
class child3 extends Component {
  state={
    age:55
  }
  render() { 
    return (<>
      <button onClick={()=>this.props.ageChange(this.state.age)}>修改父元素</button>
    </>  );
  }
}
 
export default child3;